@font-face {
    font-family: Pangolin;
    font-style: normal;
    font-weight: normal;
    font-display: block;
    src: url(../fonts/Pangolin-Regular.woff2) format("woff2"),
        url(../fonts/Pangolin-Regular.woff) format("woff");
}

* {
    font-family: 'Pangolin', cursive;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #2B2C30;
}

::-webkit-scrollbar-thumb {
    background: rgb(255, 106, 106);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(217, 255, 0);
}

/* body {
    font-family: -apple-system, BlinkMacSystemFont,
        'Segoe UI', Roboto, Oxygen, Ubuntu,
        Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif,
        'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
} */

header {
    position: relative;
}

.main-form {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    background-color: #4e4f53;
    border-radius: 4px;
    width: 70vw;
    z-index: 999;
}

.search-input {
    width: 100%;
    color: #fff;
    background-color: #4e4f53;
    outline: none;
    border: none;
    height: 56px;
    padding: 0 0 0 20px;
    margin: 0;
    border-radius: 4px 0 0 4px;
}

.input-wrap {
    overflow: hidden;
    position: relative;
    min-width: 200px;
    flex-grow: 1;
}

.search-input::placeholder {
    color: #fff;
}

.search-input:hover,
.search-button:hover,
.mobile-menu-button:hover,
.switch-button:hover {
    background-color: #2B2C30;
}

.search-input:focus+label,
.search-button:focus::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: #fff;
}

.search-button {
    overflow: hidden;
    position: relative;
    background-color: #4e4f53;
    border: none;
    outline: none;
    width: 56px;
    min-width: 40px;
    height: 56px;
    background: url(../img/find.svg) no-repeat center center;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

.mobile-menu-button {
    overflow: hidden;
    position: relative;
    display: none;
    background-color: #4e4f53;
    border: none;
    outline: none;
    width: 56px;
    min-width: 40px;
    height: 56px;
    cursor: pointer;
}

.burger {
    width: 22px;
    height: 4px;
    border-radius: 50px;
    background: #fff;
    margin: 5px auto;
    transition: 0.5s;
}

.top-burger {
    transform: translateY(9px) rotate(45deg);
    width: 22px;
}

.midle-burger {
    opacity: 0;
}

.bottom-burger {
    transform: translateY(-9px) rotate(-45deg);
    width: 22px;
}

.switch-button {
    overflow: hidden;
    position: relative;
    display: none;
    background-color: #4e4f53;
    border: none;
    outline: none;
    width: 56px;
    min-width: 40px;
    height: 56px;
    background: url(../img/theme-switch.svg) no-repeat center center;
    cursor: pointer;
}

.switch-button-desktop {
    border: none;
    outline: none;
    width: 56px;
    height: 56px;
    background: url(../img/theme-switch.svg) no-repeat center center;
    filter: invert(100%);
    cursor: pointer;
}

.header-wrap {
    padding: 200px 0 0 0;
    background: url(../img/main.jpg) no-repeat;
    background-size: cover;
}


.wave_back {
    height: 100px;
    background: url(../img/wave_back.svg);
    display: block;
    width: 100%;
    animation: marquee2 60s linear infinite;
}

.wave_front {
    height: 85px;
    background: url(../img/wave_front.svg);
    display: block;
    width: 100%;
    margin-top: -85px;
    animation: marquee1 20s linear infinite;
}

.main-menu {
    z-index: 2;
    margin: 0;
    padding: 10px 0;
    border: none;
    display: flex;
    flex-direction: row;
    position: sticky;
    top: 0;
    align-items: center;
    width: 100%;
    justify-content: space-around;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(3px);
    text-transform: uppercase;
    font-weight: bold;
}

/* ---------- */
.row {
    display: flex;
}

.col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content-wrap {
    z-index: 1;
    width: 100%;
    position: relative;
}

.content {
    text-align: center;
    padding: 10px;
}

.sticker {
    margin: 20px auto;
    width: 80px;
}

.content-col {
    margin: 30px auto;
    width: 70%;
}

.content-row {
    margin: 30px auto;
    width: 90%;
}

.content-right {
    order: 1;
}

.content-left {
    order: -1;
}

.content-label-bottom::before {
    position: absolute;
    content: "";
    left: 50%;
    bottom: -20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 20px 0 20px;
    border-color: #fff transparent transparent transparent;
    transform: translateX(-50%);
}

.content-label-left::before {
    position: absolute;
    content: "";
    left: -20px;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 20px 20px 0;
    border-color: transparent #fff transparent transparent;
    transform: translateY(-50%);
}

.content-label-right::before {
    position: absolute;
    content: "";
    right: -20px;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 20px 20px;
    border-color: transparent transparent transparent #fff;
    transform: translateY(-50%);
}

.img {
    object-fit: cover;
}

.img-row {
    width: 50%;
}

.img-col {
    width: 100%;
}

@keyframes marquee1 {
    0% {
        background-position: 0, 0
    }

    100% {
        background-position: -997px, 0
    }
}

@keyframes marquee2 {
    0% {
        background-position: 0, 0
    }

    100% {
        background-position: -1009px, 0
    }
}

@media (max-width: 540px) {
    header {
        position: static;
    }

    .main-menu {
        z-index: 100;
        margin: 0 auto;
        padding: 10px;
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 56px;
        left: 0;
        align-items: center;
        width: 100vw;
        height: calc(100vh - 56px);
        justify-content: space-around;
        background-color: #4e4f53;
        color: #fff;
        text-transform: uppercase;
        transform: translateY(-100%);
        font-size: 1.2em;
    }

    .transition {
        transition: transform cubic-bezier(0.785, 0.135, 0.15, 0.86) .2s;
    }

    .main-menu-show {
        transform: translateY(0);
    }

    .switch-button-desktop {
        order: -1;
        display: none;
    }

    .header-wrap {
        margin-top: 56px;
    }

    .main-form {
        position: fixed;
        left: 0;
        top: 0;
        transform: translate(0, 0);
        border-radius: 0;
        width: 100vw;
        z-index: 200;
    }

    .search-input,
    .search-button {
        border-radius: 0;
    }

    .switch-button,
    .mobile-menu-button {
        display: block;
    }

    .search-input:focus+label,
    .search-button:focus::before {
        content: none;
        width: 0;
        height: 0;
    }

    .search-input:hover,
    .search-button:hover,
    .mobile-menu-button:hover,
    .switch-button:hover {
        background-color: inherit;
    }

    .row {
        flex-direction: column;
    }

    .img {
        width: 100%;
        height: 100vw;
    }

    .content-right {
        order: -1;
    }

    .content-label-bottom::before,
    .content-label-left::before,
    .content-label-right::before {
        content: none;
    }

    .content-wrap::after {
        position: absolute;
        content: "";
        left: 50%;
        bottom: -20px;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 20px 20px 0 20px;
        border-color: #fff transparent transparent transparent;
        transform: translateX(-50%);
    }

    .content {
        width: 100%;
    }
}

@media (max-width: 470px) {
    .header-wrap {
        background: url(../img/main.jpg) no-repeat center;
        background-size: cover;
    }
}